import 'package:library_base/entities/generated/json/base/json_convert_content.dart';
import 'package:library_base/entities/in_order_page_child_entity.dart';
import 'package:library_base/entities/in_order_page_detail_child_entity.dart';
import 'package:library_base/entities/in_order_page_entity.dart';


InOrderPageDetailEntity $InOrderPageDetailEntityFromJson(Map<String, dynamic> json) {
  final InOrderPageDetailEntity loginBeanEntity = InOrderPageDetailEntity();

  final List<InOrderPageDetailChildEntity> details = jsonConvert.convertList<InOrderPageDetailChildEntity>(json['details']);
  loginBeanEntity.details = details;

  final String? id = jsonConvert.convert<String>(json['id']);
  if (id != null) {
    loginBeanEntity.id = id;
  }
  final String? warehouseId = jsonConvert.convert<String>(json['warehouseId']);
  if (warehouseId != null) {
    loginBeanEntity.warehouseId = warehouseId;
  }

  return loginBeanEntity;
}

Map<String, dynamic> $InOrderPageDetailEntityToJson(InOrderPageDetailEntity entity) {
  final Map<String, dynamic> data = <String, dynamic>{};
  data['id'] = entity.id;
  data['details'] = entity.details;
  data['warehouseId'] = entity.warehouseId;
  return data;
}
